package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.search.dtos.HistorySearchDto;

/**
 * @author xiaquanen
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/7/30 10:36:46
 */
public interface HistorySearchService {
    /**
     * 添加搜索记录
     *
     * @param searchWords
     * @param userId
     */
    void saveHistory(String searchWords, Integer userId);

    /**
     * 查询搜索记录
     *
     * @return
     */
    ResponseResult load();

    /**
     * 删除搜索记录
     *
     * @param historySearchDto
     */
    void deleteHistory(HistorySearchDto historySearchDto);

}
